package com.hoshiicloud.common.constant.enumeration;

/**
 * @program: hoshiicloud
 * @description: 支付模式枚举
 * @author: Mr.wu
 * @create: 2019-06-13 11:31
 **/
public enum PayMode {
    PAGE("PAGE"),
    WAP("WAP"),
    WEBAPP("WEBAPP"),
    NATIVEAPP("NATIVEAPP");

    private String payMode;

    public String getPayMode() {
        return payMode;
    }

    private PayMode(String payMode){
        this.payMode=payMode;
    }

    public static PayMode getByPayMode(String payMode) {
        for (PayMode aparameterStatus : values()) {
            if (aparameterStatus.getPayMode() == payMode) {
                return aparameterStatus;
            }
        }
        return null;
    }
}
